<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="../../js/page.js"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
    <title>bs4-滚动监听</title>
</head>

<body>
    <section class="container">
        <h3>
            滚动导航，侧边导航
        </h3>
        <p>
            滚动监听（Scrollspy）插件，即自动更新导航插件，会根据滚动条的位置自动更新对应的导航目标。其基本的实现是随着您的滚动。
        </p>
        <!-- item -->
        <div class="card my-4">
            <div class="card-header">
                <h5 class="text-primary">顶部导航</h5>
            </div>
            <div class="card-body">
                <div class="mb-3">
                    <iframe width="100%" height="380" src="./scrollspy-demo1.html" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
                </div>
            </div>
        </div>
        <!-- item end-->
        <!-- item -->
        <div class="card my-4">
            <div class="card-header">
                <h5 class="text-primary">侧边导航</h5>
            </div>
            <div class="card-body">
                <div class="mb-3">
                    <iframe width="100%" height="380" src="./scrollspy-demo3.html" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
                </div>
            </div>
        </div>
        <!-- item end-->
        <!-- item -->
        <div class="card my-4">
            <div class="card-header">
                <h5 class="text-primary">浮动导航</h5>
            </div>
            <div class="card-body">
                <div class="mb-3">
                    <iframe width="100%" height="380" src="./scrollspy-demo2.html" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
                </div>
            </div>
        </div>
        <!-- item end-->

    </section>
</body>

</html>